package com.jack.helloworld.view;

import android.content.Context;
import android.graphics.Canvas;
import androidx.annotation.Nullable;
import android.util.AttributeSet;

import com.orhanobut.logger.Logger;

/**
 * Created by helinjie on 2019/4/15.
 */
public class MyTextView extends androidx.appcompat.widget.AppCompatTextView {
	
	public MyTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
	}
	
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		super.onMeasure(widthMeasureSpec, heightMeasureSpec);
		Logger.d("MyTextView#onMeasure");
	}
	
	@Override
	protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
		super.onLayout(changed, left, top, right, bottom);
		Logger.d("MyTextView#onLayout");
	}
	
	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		Logger.d("MyTextView#onDraw");
	}
}
